﻿namespace TCommunication.Model;

/// <summary>
/// 配置信息
/// </summary>
public class ConfigInfo
{
    /// <summary>
    /// 类型
    /// </summary>
    public Type? TypeInstance
    {
        get
        {
            if (Type == null)
            {
                return null;
            }
            else
            {
                return System.Type.GetType(Type);
            }
        }
    }

    public string? Type { get; set; }
    /// <summary>
    /// 配置字符串，Json格式
    /// </summary>
    public string? Config { get; set; }
}